//
//  CustomReportCell.m
//  ForYourBeauty
//
//  Created by Kelly xu on 2019/6/2.
//  Copyright © 2019 changrenTech. All rights reserved.
//

#import "CustomReportCell.h"
#import "NSDate+DWDateUtils.h"
@implementation CustomReportCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setReportValue:(ReportListModel*)model isAfter:(BOOL)isAfter{
    if (isAfter) {
        self.timeLab.text = [NSDate timeWithTimeInterval:[NSString stringWithFormat:@"%f",model.endTime]];
        [self.contentImg sd_setImageWithURL:[NSURL URLWithString:model.endImg] placeholderImage:[UIImage imageNamed:@"btn_photo"]];
    }else{
        self.timeLab.text = [NSDate timeWithTimeInterval:[NSString stringWithFormat:@"%f",model.beganTime]];
        [self.contentImg sd_setImageWithURL:[NSURL URLWithString:model.beganImg] placeholderImage:[UIImage imageNamed:@"btn_photo"]];
    }
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
